'use strict';

define([
    'login/login.module',
    'text!login/login-template.html',
    'login/login-service',
    'css!login/login.css'
], function(loginModule, LoginTemplate, LoginService) {
    loginModule.component('loginForm', {
        template: LoginTemplate,
        controller: function($scope, $element, $attrs, $state, LoginService) {
            console.log(LoginService);
            var ctrl = this;
            ctrl.user = {
                email: 'test@126.com',
                password: '12345',
                rememberMe: true
            };
            ctrl.doLogin = function() {
                console.log(ctrl.user);
                $state.go('workspace');
            }
        }
    });
});
